package com.lht.femalecat.nio;

/**
 * @Author:骆宏图
 * @CreateDate: 14:44 2018/7/26.
 * @Description:
 * @Modified By:
 */
public class TimeServer {

    public static void main(String[] args){

        int port=8080;
        if(args!=null&&args.length>0){
            try{
                port=Integer.valueOf(args[0]);
            }catch(NumberFormatException e){
                //采用默认数据
            }
        }
        MultiplexerTimeServer multiplexerTimeServer=new MultiplexerTimeServer(port);

        new Thread(multiplexerTimeServer).start();
    }
}
